package com.kczd.jinlan.model;

import org.litepal.crud.DataSupport;

/**
 * Created by AYD on 2016/11/22.
 * <p>
 * 购物车商品
 */
public class ShoppingCartBean extends DataSupport  {

    private int id;  //数据库id
    private String imageUrl;  //商品图片
    private String shoppingName; //商品名称
    private String price;  //商品价格
    public boolean isChoosed;  //商品是否加入购物车
    private int count;  //商品的数量
    public String Desc;  //商品的详细信息
    public String spec_key;  //商品的详细信息
    public String spec_name;  //商品的详细信息
    private int cid;//用来判断哪个商品已经加入购物车

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getShoppingName() {
        return shoppingName;
    }

    public void setShoppingName(String shoppingName) {
        this.shoppingName = shoppingName;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public boolean isChoosed() {
        return isChoosed;
    }

    public void setChoosed(boolean choosed) {
        isChoosed = choosed;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getDesc() {
        return Desc;
    }

    public void setDesc(String desc) {
        Desc = desc;
    }

    public String getSpec_key() {
        return spec_key;
    }

    public void setSpec_key(String spec_key) {
        this.spec_key = spec_key;
    }

    public String getSpec_name() {
        return spec_name;
    }

    public void setSpec_name(String spec_name) {
        this.spec_name = spec_name;
    }

    @Override
    public String toString() {
        return "{" +
                "\"goods_id\":" + cid +
                ", \"goods_num\":\"" + count + '\"' +
                ", \"spec_key\":\"" + spec_key + '\"' +
                ", \"spec_name\":\"" + spec_name + '\"' +
                ", \"goods_price\":" + price +
                '}';
    }
}
